package com.example.demo;

import org.springframework.stereotype.Service;

@Service
public class TextReverseService {

    public String reverseText(String input) {
        return new StringBuilder(input).reverse().toString();
    }
}